cfmutablestring.htmlHTMLudog1èπùΔ¢πùΔ¢ÅÅ¡Í Monkeybread Realbasic plugin - Documentation - CFMutableString

MBS Plugin Documentation

This is the documentation for the Realbasic Plugins from Monkeybreadsoftware.de. You find these plugins and the newest version of this document at http://www.monkeybreadsoftware.de/realbasic inside the plugins section.

This help was last updated on Freitag, 6. September 2002 and covers 2136 items: 126 classes, 2 controls and 583 global functions.

The list of the themes Global methods by category Global methods by name The list of the classes The list of the controls

class CFMutableString

class, CoreFoundation Di, 6. Aug 2002
Mac OS Classic: Does nothing. Mac OS Carbon: Works. Windows: Does nothing.
Function: A class for a core foundation mutable string.
Notes:
Subclass of CFString.
If the release property is true, the destructor of this class will release the set reference.

AppendString(s as CFString)

method, CoreFoundation Di, 6. Aug 2002
Mac OS Classic: Does nothing. Mac OS Carbon: Works. Windows: Does nothing.
Function: Appends the given CFString.

AppendString(s as String)

method, CoreFoundation Di, 6. Aug 2002
Mac OS Classic: Does nothing. Mac OS Carbon: Works. Windows: Does nothing.
Function: Appends the given REALbasic String.

Capitalize

method, CoreFoundation Di, 6. Aug 2002
Mac OS Classic: Does nothing. Mac OS Carbon: Works. Windows: Does nothing.
Function: Changes the first character represented by a CFString object to uppercase (if it is a lowercase alphabetical character).

Delete(pos as integer,len as integer)

method, CoreFoundation Di, 6. Aug 2002
Mac OS Classic: Does nothing. Mac OS Carbon: Works. Windows: Does nothing.
Function: Deletes a range of characters in a mutable CFString object.

Insert(index as integer,s as CFString)

method, CoreFoundation Di, 6. Aug 2002
Mac OS Classic: Does nothing. Mac OS Carbon: Works. Windows: Does nothing.
Function: Inserts a string at a specified location in the character buffer of a mutable CFString object.

Lowercase

method, CoreFoundation Di, 6. Aug 2002
Mac OS Classic: Does nothing. Mac OS Carbon: Works. Windows: Does nothing.
Function: Changes all uppercase alphabetical characters in a mutable CFString to lowercase.

Pad(padstr as CFString,len as integer,indexIntoPad as integer)

method, CoreFoundation Di, 6. Aug 2002
Mac OS Classic: Does nothing. Mac OS Carbon: Works. Windows: Does nothing.
Function: Enlarges the string represented by a CFString object, padding it with specified characters, or truncates the string.
Notes:
The CFString.Pad function has two purposes. It either enlarges the character buffer of a mutable CFString object to a given length, padding the added length with a given character or characters, or it truncates the character buffer to a smaller size. The key parameter for this behavior is the length parameter; if it is greater than the current length of the represented string, padding takes place, and if it less than that length, truncation occurs.

For example, say you have a mutable CFString ( aMutStr ) containing the characters "abcdef". The call

CFString.Pad(newcfstring(". "), 12, 1)

results in aMutStr containing "abcdef . . .". However, the following call

CFString.Pad( nil, 3, 0)

results in aMutStr containing "abc".

Replace(newstr as CFString)

method, CoreFoundation Di, 6. Aug 2002
Mac OS Classic: Does nothing. Mac OS Carbon: Works. Windows: Does nothing.
Function: Replaces the content of this CFMutableString with the one from newstr.

Replace(pos as integer,len as integer,newstr as CFString)

method, CoreFoundation Di, 6. Aug 2002
Mac OS Classic: Does nothing. Mac OS Carbon: Works. Windows: Does nothing.
Function: Replaces the substring with the given range of this CFMutableString with the one from newstr.

Trim

method, CoreFoundation Di, 6. Aug 2002
Mac OS Classic: Does nothing. Mac OS Carbon: Works. Windows: Does nothing.
Function: Trims whitespace from the beginning and end of the characters represented by a mutable CFString object.

Trim(trimchar as CFString)

method, CoreFoundation Di, 6. Aug 2002
Mac OS Classic: Does nothing. Mac OS Carbon: Works. Windows: Does nothing.
Function: Trims a specified substring from the beginning and end of the character contents represented by a mutable CFString object.

Truncate(len as integer)

method, CoreFoundation Di, 6. Aug 2002
Mac OS Classic: Does nothing. Mac OS Carbon: Works. Windows: Does nothing.
Function: If the string is longer than len, it's truncated to len.

Uppercase

method, CoreFoundation Di, 6. Aug 2002
Mac OS Classic: Does nothing. Mac OS Carbon: Works. Windows: Does nothing.
Function: Changes all lowercase alphabetical characters in a mutable CFString object to uppercase.

Contact

Written 2002 by Christian Schmitz. Feel free to ask or report mistakes to realbasic@macsw.de.
Thanks.

This resource fork intentionally left blank ˇˇ